<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script>
$(document).ready(function(){
	$("#loginForm").submit(function(){
		var id=$("input[name=memberId]").val();
		var pass=$("input[name=memberPass]").val();		
		if(id==""){
			alert("아이디를 입력해 주세요");
			return;
		}
		if(pass==""){
			alert("비밀번호를 입력해 주세요");
			return;
		}
	});
});
</script>
<h3>로그인 서비스</h3>
<form method="post" id="loginForm" action="login.do">
<table>
<tr>
	<td>아이디</td><td><input type="text" name="memberId"></td>
</tr>
<tr>
	<td>패스워드</td><td><input type="password" name="memberPass"></td>
</tr>
<tr align="center">
	<td colspan="2" ><input type="submit" value="로그인"></td>
</tr>
</table>
</form>